#ifndef RFH630_H_
#define RFH630_H_


#ifdef __cplusplus
extern "C" {
#endif



#define TIMEOUT				5

#define UIDLENGTH			8
#define BLOCKDATALENGTH		4


/***********************************************error code****************************/
#define SUCCESS						0x00
#define FAIL						0x01

#define RFH_CONNECT_ERROR			0x02
#define RFH_INQUIRY_ERROR			0x03
#define RFH_NO_TAG					0x04
#define RFH_MORE_TAG				0x05
#define RFH_READ_ERROR				0x06
#define RFH_WRITE_ERROR				0x07

typedef struct
{
	unsigned char id[UIDLENGTH];
}RFH630_TAGID;

/**************************************function**********************************************/
int RFH_Readbytes(char *ipaddress, int port, RFH630_TAGID *id, unsigned char *data, int start, int length);
int RFH_Writebytes(char *ipaddress, int port, RFH630_TAGID *id, unsigned char *data, int start, int length);

#ifdef __cplusplus
}
#endif


#endif